package psi.controllers;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.jfinal.ext.interceptor.POST;
import com.jfinal.plugin.activerecord.Record;

import psi.services.BizlogService;

public class BizlogController extends Controller{
	public void index() {
		setAttr("title", "首页");
		setAttr("loginUserName", "李静波");

		render("index.html");
	}
	
	@Before(POST.class)
	public void logList() {
		Record params = new Record();
		params.set("start", getPara("start"));
		params.set("limit", getPara("limit"));
		
		renderJson(new BizlogService().logList(params));
	}
}
